import javax.swing.JFrame;


public class PongWindow {
	
	static Pong pong = new Pong();
	
	public static void main(String[] args)
	{
		JFrame frame = new JFrame("Pong");
		frame.setSize(800, 600);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.setVisible(true);
		
		frame.add(pong);
		
		frame.addKeyListener(pong.player.input);
		
		pong.tick();
	}
}
